'Original', 'toFile' => 'New']); $this->differ = new Differ($strictUnifiedDiffOutputBuilder); } public function diff(string $old, string $new) : string { if ($old === $new) { return ''; } return $this->differ->diff($old, $new); } }